package cn.hackcloud.exception;

import cn.hackcloud.dto.Result;
import com.alibaba.csp.sentinel.slots.block.BlockException;

public class SentinelBlockHandler {
    public Result blockHandler(int id, BlockException ex) {
        System.out.println("blockHandler....");
        return Result.getResult(0, "DEALING", "");
    }

    public Result fallback(int id) {
        System.out.println("fallback....");
        return Result.getResult(0, "DEALING", "");
    }
}
